<?php

/**
 *
 */
class UI_ListViewBox extends Z_Component {

    public function __construct($text="",$isSubList=false) {

        if (!$isSubList)
        {
            parent::__construct("<ul data-role=\"listview\" data-inset=\"true\" data-theme=\"".Z_App::getConf()->theme->list."\"  data-dividertheme=\"".Z_App::getConf()->theme->list_divider."\"> ", "</ul>");

            if ($text!="")
                $this->add(new UI_ListView_ItemDivider($text));
        }
        else
        {
            parent::__construct("<li>$text<ul>","</ul></li>");
        }

    }

}